import request from "@/utils/request";

/**
 * 上传文件
 * 素材文件目录：resource
 * 证书文件目录：pem
 * 上传Excel目录：excel
 * 商品目录：goods
 * 系统目录：system
 * 设备图片：machine
 * @param params
 * @returns
 */
export function uploadFile(data) {
  return request({
    url: '/management/common/uploadFile',
    method: 'post',
    data
  })
}

/**
 * 验证当前登录账号密码
 * @param params
 * @returns
 */
export function checkPwd(data) {
  return request({
    url: '/management/common/checkPwd',
    method: 'post',
    data
  })
}